#!/bin/ash
if [ "`cat /etc/ss.sh | grep -c 308`" -lt 1 ]; then
	rm /etc/ss.sh
	wget http://routerdnsmasq.googlecode.com/git/ss.sh -O /etc/ss.sh
	wget http://routerdnsmasq.googlecode.com/git/308.json -O /etc/308.json
fi

chmod 755 /etc/*.sh
#facebook
sed -i /etc/hosts -e 's/173.252.112.28/31.13.68.9/g'
sed -i /etc/hosts -e 's/173.252.100.19/69.171.242.23/g'
#dnsmasq change dns to japan
sed -i /etc/dnsmasq.conf -e 's/168.95.1.1/61.60.224.5/g'
#dns change dns to japan
sed -i /etc/config/network -e 's/60.61.224.5/61.60.224.5/g'